package util;

/**
 * @author Sven Eric Panitz
 */
public class Pair<A,B>{

  public A fst;
  public B snd;

  public Pair(A fst,B snd){
    this.fst=fst;
    this.snd=snd;
  }

  @Override public String toString(){
    return "("+fst+","+snd+")";
  }
  
  @Override
	public boolean equals(Object o) {
		if (!(o instanceof Pair))
			return false;
		Pair<?, ?> that = (Pair<?, ?>) o;
		return this.fst.equals(that.fst) && this.snd.equals(that.snd);
	}

}

